/*
 * Tic-Tac-Toe - Turn-based strategy game
 * Copyright 2008, 2009 Shayne Riley and Paul Maseberg
 *
 * Tic-Tac-Toe is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Tic-Tac-Toe is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Tic-Tac-Toe.  If not, see <http://www.gnu.org/licenses/>
 * or write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 *
 * To contact the authors on questions or issues regarding the license,
 * you may send an email to <shayner at gmail dot com>
 */

#ifndef TITLESCREEN_H_
#define TITLESCREEN_H_

#include "Graphics.h"
#include "Audio.h"
#include "GameBoard.h"

/**
 * Title screen shows the player the name of the game and presents options
 * for starting the game.
 */
class TitleScreen
{
public:
    /**
     * Constructor for the title screen.
     *
     * @param gfx The graphics system used to draw the screen.
     * @param aud The audio system to play the music and audio.
     */
    TitleScreen(Graphics *gfx, Audio *aud);

    virtual ~TitleScreen();

    /**
     * Loops until everything is set up and the user is ready to play.
     */
    void perform();

    /**
     * Retrieve the difficulty that the user picked.
     * Should not be called before the perform function, because the user hasn't
     * picked anything yet.
     *
     * @return The Difficulty. By default it is easy.
     */
    GameBoard::Difficulty getSettingDifficulty();

private:
    Graphics *mGfx;
    Audio *mAud;

    // Game settings.
    GameBoard::Difficulty mSettingDifficulty;
};

#endif /* TITLESCREEN_H_ */
